package com.sdy.hospitalguard.biz.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 患者登记表
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class PatientInformation extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 病床ID
     */
    @ApiModelProperty(value = "病床ID")
    private Integer sickbedId;

    /**
     * 住院号
     */
    @ApiModelProperty(value = "住院号")
    private String admissionNumber;

    /**
     * 住院楼id
     */
    @ApiModelProperty(value = "住院楼id")
    private String floorId;

    /**
     * 入院时间
     */
    @ApiModelProperty(value = "入院时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date admissionTime;

    /**
     * 出院时间
     */
    @ApiModelProperty(value = "出院时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date dischargeTime;

    /**
     * 患者状态: 0住院中/生效 1:已出院/失效
     */
    @ApiModelProperty(value = "患者状态: 0住院中/生效 1:已出院/失效")
    private Integer patientState;

    /**
     * 患者备注
     */
    @ApiModelProperty(value = "患者备注")
    private String patientRemark;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

}
